home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: uu4news.netcom.com!zodiac!szh
- From: szh@zcon.com (Syed Zaeem Hosain)
- Subject: Re: string search?
- Message-ID: <1996Mar27.220051.1261@zcon.com>
- Sender: szh@zcon.com (Syed Zaeem Hosain)
- Nntp-Posting-Host: zodiac
- Reply-To: szh@zcon.com
- Organization: Z Consulting Group
- References: <4jbmtk$78k@dfw-ixnews3.ix.netcom.com>
- Date: Wed, 27 Mar 1996 22:00:51 GMT
-
- In article <4jbmtk$78k@dfw-ixnews3.ix.netcom.com>, rmor1@ix.netcom.com(Ricardo Mor ) writes:
- > How can I search for a string of characters within another string?
- >for example..
- >
- > string = "NEXT_TIME";
- >
- > string2 = "NEXT";
- >
- > how can I find string2 in string?
-
- Look in your compiler reference manual for functions like "strstr" (I
- forget whether this is ANSI or not - I can't find my reference) or the
- like. Or in a text on algorithms.
-
- Z
-
-
- --
- -------------------------------------------------------------------------
- | Syed Zaeem Hosain P. O. Box 610097 (408) 441-7021 |
- | Z Consulting Group San Jose, CA 95161 szh@zcon.com |
- -------------------------------------------------------------------------
-